// -----------------------------------------------
// Author:     code34 nicolas_boiteux@yahoo.fr
// Edited by:  Neumatic
// Warcontext: Search some one - action script for AI follow players
// -----------------------------------------------
private ["_unit","_role"];

_unit = _this select 0;

_role = _unit getVariable "civilrole";

if (_role in ["bomberman","propagander","altercation","saboter","builder"]) then {
	wcgarbage = [format ["Search %1", name _unit], "You found a terrorist", "You should arrest him and bring him back to base", 10] spawn WC_fnc_playerhint;
} else {
	wcgarbage = [format ["Search %1", name _unit], "Nothing seems to be suspect", "Search others civil if you have some doubt", 10] spawn WC_fnc_playerhint;
};